﻿<Window x:Class="TextAnalyzer.ExportDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:this="clr-namespace:TextAnalyzer"
        Title="내보내기" Height="500" Width="300" ShowInTaskbar="False" WindowStyle="ToolWindow">
    <Window.Resources>
        <this:EnumMatchToBooleanConverter x:Key="enumConverter" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.8*" />
            <RowDefinition Height="0.2*" />
            <RowDefinition Height="38" />
        </Grid.RowDefinitions>
        <GroupBox Header="출력 내용 결정" Grid.Row="0" Margin="5">
            <ListBox Name="listBoxSelection" ItemsSource="{Binding Keys}" DisplayMemberPath="Key" SelectionMode="Extended" Margin="5" />
        </GroupBox>
        <GroupBox Header="출력 방식 결정" Grid.Row="1" Margin="5">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <RadioButton Content="Microsoft Excel" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0" IsChecked="{Binding ExportTarget, Mode=TwoWay,Converter={StaticResource enumConverter},ConverterParameter=Excel}" />
                <RadioButton Content="CSV" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1" IsChecked="{Binding ExportTarget,Mode=TwoWay,Converter={StaticResource enumConverter},ConverterParameter=CSV}" />
            </Grid>
        </GroupBox>
        <Button Name="buttonExport" Content="내보내기" Grid.Row="2" Margin="5" Click="OnClickButtonExport" />
    </Grid>
</Window>
